package com.xiaohong.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaohong.user.pojo.UsernameList;

import java.util.List;

public interface ChatUsernameListService {

    /**
     * 条件+分页查询ChatUsernameList
     * @param usernameList 查询条件
     * @param page 页码
     * @param size 页大小
     * @return 分页结果
     */
    Page findPage(UsernameList usernameList, int page, int size);

    /**
     * 分页查询ChatUsernameList
     * @param page
     * @param size
     * @return
     */
    Page findPage(int page, int size);

    /**
     * 多条件搜索方法ChatUsernameList
     * @param usernameList
     * @return
     */
    List<UsernameList> findList(UsernameList usernameList);

    /***
     * 删除ChatUsernameList
     * @param id
     */
    void delete(Long id);

    /***
     * 修改ChatUsernameList数据
     * @param usernameList
     */
    void update(UsernameList usernameList);

    /***
     * 新增ChatUsernameList
     * @param usernameList
     */
    void add(UsernameList usernameList);

    /**
     * 根据ID查询ChatUsernameList
     * @param id
     * @return
     */
     UsernameList findById(Long id);

    /***
     * 查询所有ChatUsernameList
     * @return
     */
    List<UsernameList> findAll();
}
